<?xml version="1.0" encoding="UTF-8"?>
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:p="http://primefaces.org/ui"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:func="http://dip.com.br/functions"
	>
	
		

			<table>
				<tr>
					<td><h:outputText value="Nome:" /></td>
					<td><p:inputText id="name" value="#{listagemModulo.query.nome}" /></td>
					<td><p:commandButton action="#{listagemModulo.acaoPesquisar}" update="#{func:getFooClientId('divTableModulo')}"
							value="Pesquisar" /></td>
				</tr>
			</table>

			<h:panelGroup id="divTableModulo" layout="block"
				style="overflow:auto;  height:250px; width:100%;">

				<p:dataTable var="modulo" value="#{listagemModulo.lista}">
					<f:facet name="header">  
            		Lista de Modulos  
        		</f:facet>
					<p:column>
						<f:facet name="header">  
            		    Modulo  
            		</f:facet>
						<p:commandLink action="#{listagemModulo.entidadeSelecionada}" update="#{ouvinteRendered}" onclick="listagemModulo.hide()" >
							<h:outputText value="#{modulo.nome}" />
							<f:setPropertyActionListener target="#{listagemModulo.query}" value="#{modulo}"/>
						</p:commandLink>
						<f:facet name="footer">  
                		Modulo
            		</f:facet>
					</p:column>
					<f:facet name="footer">  
          		  Lista de Modulos    
        		</f:facet>
				</p:dataTable>
			</h:panelGroup>
		




</ui:composition>